<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>chigraph: chi::GraphStruct Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="chigraphDoxygenIcon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">chigraph
   &#160;<span id="projectnumber">master</span>
   </div>
   <div id="projectbrief">Systems programming language written for beginners in LLVM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structchi_1_1GraphStruct.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="structchi_1_1GraphStruct-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">chi::GraphStruct Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A class holding a compound type defined in a <a class="el" href="structchi_1_1GraphModule.html" title="Module that holds graph functions. ">GraphModule</a>.  
 <a href="structchi_1_1GraphStruct.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="GraphStruct_8hpp_source.html">chi/GraphStruct.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab9d9a6c278322a563b1d57ec847abe63"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1GraphStruct.html#ab9d9a6c278322a563b1d57ec847abe63">GraphStruct</a> (<a class="el" href="structchi_1_1GraphModule.html">GraphModule</a> &amp;mod, std::string <a class="el" href="structchi_1_1GraphStruct.html#ad25ddcbdf75436b9a0f76720d34257d4">name</a>)</td></tr>
<tr class="memdesc:ab9d9a6c278322a563b1d57ec847abe63"><td class="mdescLeft">&#160;</td><td class="mdescRight">GraphType constructor; don't use this use GraphModule::newStruct.  <a href="#ab9d9a6c278322a563b1d57ec847abe63">More...</a><br /></td></tr>
<tr class="separator:ab9d9a6c278322a563b1d57ec847abe63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba05cdce9627a23da0449801e068d85d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1GraphStruct.html#aba05cdce9627a23da0449801e068d85d">addType</a> (<a class="el" href="structchi_1_1DataType.html">DataType</a> ty, std::string <a class="el" href="structchi_1_1GraphStruct.html#ad25ddcbdf75436b9a0f76720d34257d4">name</a>, size_t addBefore, bool updateReferences=true)</td></tr>
<tr class="memdesc:aba05cdce9627a23da0449801e068d85d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a new type to the struct.  <a href="#aba05cdce9627a23da0449801e068d85d">More...</a><br /></td></tr>
<tr class="separator:aba05cdce9627a23da0449801e068d85d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a262915d6d2148d7234525e9ccfa5c9d5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structchi_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1GraphStruct.html#a262915d6d2148d7234525e9ccfa5c9d5">context</a> () const</td></tr>
<tr class="memdesc:a262915d6d2148d7234525e9ccfa5c9d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the context.  <a href="#a262915d6d2148d7234525e9ccfa5c9d5">More...</a><br /></td></tr>
<tr class="separator:a262915d6d2148d7234525e9ccfa5c9d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27c5062196f73eae3125c0baeb592d00"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structchi_1_1DataType.html">DataType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1GraphStruct.html#a27c5062196f73eae3125c0baeb592d00">dataType</a> ()</td></tr>
<tr class="memdesc:a27c5062196f73eae3125c0baeb592d00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the <a class="el" href="structchi_1_1DataType.html" title="A type of data Loose wrapper around llvm::Type*, except it knows which ChiModule it&#39;s in and it embed...">DataType</a> of the struct.  <a href="#a27c5062196f73eae3125c0baeb592d00">More...</a><br /></td></tr>
<tr class="separator:a27c5062196f73eae3125c0baeb592d00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89d3ea5e72ed6e7d8380fb82fa5eb521"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1GraphStruct.html#a89d3ea5e72ed6e7d8380fb82fa5eb521">modifyType</a> (size_t id, <a class="el" href="structchi_1_1DataType.html">DataType</a> newTy, std::string newName, bool updateReferences=true)</td></tr>
<tr class="memdesc:a89d3ea5e72ed6e7d8380fb82fa5eb521"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the type and name of a type.  <a href="#a89d3ea5e72ed6e7d8380fb82fa5eb521">More...</a><br /></td></tr>
<tr class="separator:a89d3ea5e72ed6e7d8380fb82fa5eb521"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82a1da52a4bf23e1e7fef4d7228603b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structchi_1_1GraphModule.html">GraphModule</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1GraphStruct.html#a82a1da52a4bf23e1e7fef4d7228603b1">module</a> () const</td></tr>
<tr class="memdesc:a82a1da52a4bf23e1e7fef4d7228603b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the module.  <a href="#a82a1da52a4bf23e1e7fef4d7228603b1">More...</a><br /></td></tr>
<tr class="separator:a82a1da52a4bf23e1e7fef4d7228603b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad25ddcbdf75436b9a0f76720d34257d4"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1GraphStruct.html#ad25ddcbdf75436b9a0f76720d34257d4">name</a> () const</td></tr>
<tr class="memdesc:ad25ddcbdf75436b9a0f76720d34257d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the name of the type.  <a href="#ad25ddcbdf75436b9a0f76720d34257d4">More...</a><br /></td></tr>
<tr class="separator:ad25ddcbdf75436b9a0f76720d34257d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a759b0b44c984d7aaa6c2fb32e035264b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1GraphStruct.html#a759b0b44c984d7aaa6c2fb32e035264b">removeType</a> (size_t id, bool updateReferences=true)</td></tr>
<tr class="memdesc:a759b0b44c984d7aaa6c2fb32e035264b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove a type from a struct.  <a href="#a759b0b44c984d7aaa6c2fb32e035264b">More...</a><br /></td></tr>
<tr class="separator:a759b0b44c984d7aaa6c2fb32e035264b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a464c5edd4ebcb07161c3d05312f1fc33"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="structchi_1_1NodeInstance.html">NodeInstance</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1GraphStruct.html#a464c5edd4ebcb07161c3d05312f1fc33">setName</a> (std::string newName, bool updateReferences=true)</td></tr>
<tr class="memdesc:a464c5edd4ebcb07161c3d05312f1fc33"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the name of the struct, and optionally update all references in the context.  <a href="#a464c5edd4ebcb07161c3d05312f1fc33">More...</a><br /></td></tr>
<tr class="separator:a464c5edd4ebcb07161c3d05312f1fc33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1895cfaebac03e21d35ec2a155b3c10"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="structchi_1_1NamedDataType.html">NamedDataType</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1GraphStruct.html#ae1895cfaebac03e21d35ec2a155b3c10">types</a> () const</td></tr>
<tr class="memdesc:ae1895cfaebac03e21d35ec2a155b3c10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the types the struct contains.  <a href="#ae1895cfaebac03e21d35ec2a155b3c10">More...</a><br /></td></tr>
<tr class="separator:ae1895cfaebac03e21d35ec2a155b3c10"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A class holding a compound type defined in a <a class="el" href="structchi_1_1GraphModule.html" title="Module that holds graph functions. ">GraphModule</a>. </p>

<p class="definition">Definition at line <a class="el" href="GraphStruct_8hpp_source.html#l00018">18</a> of file <a class="el" href="GraphStruct_8hpp_source.html">GraphStruct.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ab9d9a6c278322a563b1d57ec847abe63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9d9a6c278322a563b1d57ec847abe63">&#9670;&nbsp;</a></span>GraphStruct()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">chi::GraphStruct::GraphStruct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structchi_1_1GraphModule.html">GraphModule</a> &amp;&#160;</td>
          <td class="paramname"><em>mod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>GraphType constructor; don't use this use GraphModule::newStruct. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mod</td><td>Module to add to </td></tr>
    <tr><td class="paramname">name</td><td>name of the type </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="GraphStruct_8cpp_source.html#l00021">21</a> of file <a class="el" href="GraphStruct_8cpp_source.html">GraphStruct.cpp</a>.</p>

<p class="reference">References <a class="el" href="GraphStruct_8hpp_source.html#l00043">name()</a>.</p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_ab9d9a6c278322a563b1d57ec847abe63_cgraph.svg" width="411" height="38"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aba05cdce9627a23da0449801e068d85d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba05cdce9627a23da0449801e068d85d">&#9670;&nbsp;</a></span>addType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void chi::GraphStruct::addType </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structchi_1_1DataType.html">DataType</a>&#160;</td>
          <td class="paramname"><em>ty</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>addBefore</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>updateReferences</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a new type to the struct. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ty</td><td>The type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd><code>ty.vaid()</code> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The name of the type </td></tr>
    <tr><td class="paramname">addBefore</td><td>The type to add the new type before. Use <a class="el" href="structchi_1_1GraphStruct.html#ae1895cfaebac03e21d35ec2a155b3c10" title="Get the types the struct contains. ">types()</a>.size() to add to the end </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd><code>addBefore &lt;= <a class="el" href="structchi_1_1GraphStruct.html#ae1895cfaebac03e21d35ec2a155b3c10" title="Get the types the struct contains. ">types()</a>.size()</code> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">updateReferences</td><td>Should the references to make and break nodes be updated? </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="GraphStruct_8cpp_source.html#l00068">68</a> of file <a class="el" href="GraphStruct_8cpp_source.html">GraphStruct.cpp</a>.</p>

<p class="reference">References <a class="el" href="GraphStruct_8hpp_source.html#l00030">module()</a>, <a class="el" href="GraphStruct_8hpp_source.html#l00047">types()</a>, <a class="el" href="ChiModule_8hpp_source.html#l00105">chi::ChiModule::updateLastEditTime()</a>, and <a class="el" href="DataType_8hpp_source.html#l00044">chi::DataType::valid()</a>.</p>

<p class="reference">Referenced by <a class="el" href="GraphStruct_8hpp_source.html#l00047">types()</a>.</p>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_aba05cdce9627a23da0449801e068d85d_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
<div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_aba05cdce9627a23da0449801e068d85d_icgraph.svg" width="100%" height="442"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="a262915d6d2148d7234525e9ccfa5c9d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a262915d6d2148d7234525e9ccfa5c9d5">&#9670;&nbsp;</a></span>context()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structchi_1_1Context.html">Context</a>&amp; chi::GraphStruct::context </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the context. </p>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="structchi_1_1Context.html" title="The class that handles the loading, creation, storing, and compilation of modules It also stores a LL...">Context</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="GraphStruct_8hpp_source.html#l00026">26</a> of file <a class="el" href="GraphStruct_8hpp_source.html">GraphStruct.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="GraphStruct_8cpp_source.html#l00111">dataType()</a>, and <a class="el" href="GraphStruct_8cpp_source.html#l00024">setName()</a>.</p>
<div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_a262915d6d2148d7234525e9ccfa5c9d5_icgraph.svg" width="100%" height="492"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="a27c5062196f73eae3125c0baeb592d00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27c5062196f73eae3125c0baeb592d00">&#9670;&nbsp;</a></span>dataType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structchi_1_1DataType.html">DataType</a> chi::GraphStruct::dataType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the <a class="el" href="structchi_1_1DataType.html" title="A type of data Loose wrapper around llvm::Type*, except it knows which ChiModule it&#39;s in and it embed...">DataType</a> of the struct. </p>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="structchi_1_1DataType.html" title="A type of data Loose wrapper around llvm::Type*, except it knows which ChiModule it&#39;s in and it embed...">DataType</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="GraphStruct_8cpp_source.html#l00111">111</a> of file <a class="el" href="GraphStruct_8cpp_source.html">GraphStruct.cpp</a>.</p>

<p class="reference">References <a class="el" href="GraphStruct_8hpp_source.html#l00026">context()</a>, <a class="el" href="Context_8cpp_source.html#l00444">chi::Context::findInstancesOfType()</a>, <a class="el" href="Context_8hpp_source.html#l00173">chi::Context::llvmContext()</a>, <a class="el" href="GraphStruct_8hpp_source.html#l00030">module()</a>, <a class="el" href="GraphStruct_8hpp_source.html#l00043">name()</a>, <a class="el" href="GraphModule_8cpp_source.html#l00606">chi::GraphModule::nodeTypeFromName()</a>, <a class="el" href="GraphStruct_8hpp_source.html#l00047">types()</a>, and <a class="el" href="DataType_8hpp_source.html#l00044">chi::DataType::valid()</a>.</p>

<p class="reference">Referenced by <a class="el" href="GraphStruct_8hpp_source.html#l00047">types()</a>.</p>
<div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_a27c5062196f73eae3125c0baeb592d00_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
<div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-5-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_a27c5062196f73eae3125c0baeb592d00_icgraph.svg" width="100%" height="442"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="a89d3ea5e72ed6e7d8380fb82fa5eb521"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89d3ea5e72ed6e7d8380fb82fa5eb521">&#9670;&nbsp;</a></span>modifyType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void chi::GraphStruct::modifyType </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structchi_1_1DataType.html">DataType</a>&#160;</td>
          <td class="paramname"><em>newTy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>newName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>updateReferences</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change the type and name of a type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>The ID to change </td></tr>
    <tr><td class="paramname">newTy</td><td>The new type </td></tr>
    <tr><td class="paramname">newName</td><td>The new name </td></tr>
    <tr><td class="paramname">updateReferences</td><td>Should the references to make and break nodes be updated? </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="GraphStruct_8cpp_source.html#l00082">82</a> of file <a class="el" href="GraphStruct_8cpp_source.html">GraphStruct.cpp</a>.</p>

<p class="reference">References <a class="el" href="GraphStruct_8hpp_source.html#l00030">module()</a>, <a class="el" href="GraphStruct_8hpp_source.html#l00047">types()</a>, <a class="el" href="ChiModule_8hpp_source.html#l00105">chi::ChiModule::updateLastEditTime()</a>, and <a class="el" href="DataType_8hpp_source.html#l00044">chi::DataType::valid()</a>.</p>

<p class="reference">Referenced by <a class="el" href="GraphStruct_8hpp_source.html#l00047">types()</a>.</p>
<div id="dynsection-6" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-6-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-6-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-6-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_a89d3ea5e72ed6e7d8380fb82fa5eb521_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
<div id="dynsection-7" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-7-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-7-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-7-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_a89d3ea5e72ed6e7d8380fb82fa5eb521_icgraph.svg" width="100%" height="442"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="a82a1da52a4bf23e1e7fef4d7228603b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82a1da52a4bf23e1e7fef4d7228603b1">&#9670;&nbsp;</a></span>module()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structchi_1_1GraphModule.html">GraphModule</a>&amp; chi::GraphStruct::module </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the module. </p>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="structchi_1_1GraphModule.html" title="Module that holds graph functions. ">GraphModule</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="GraphStruct_8hpp_source.html#l00030">30</a> of file <a class="el" href="GraphStruct_8hpp_source.html">GraphStruct.hpp</a>.</p>

<p class="reference">References <a class="el" href="GraphStruct_8cpp_source.html#l00024">setName()</a>.</p>

<p class="reference">Referenced by <a class="el" href="GraphStruct_8cpp_source.html#l00068">addType()</a>, <a class="el" href="GraphStruct_8cpp_source.html#l00111">dataType()</a>, <a class="el" href="GraphStruct_8cpp_source.html#l00082">modifyType()</a>, <a class="el" href="GraphModule_8cpp_source.html#l00855">chi::GraphModule::removeStruct()</a>, <a class="el" href="GraphStruct_8cpp_source.html#l00097">removeType()</a>, and <a class="el" href="GraphStruct_8cpp_source.html#l00024">setName()</a>.</p>
<div id="dynsection-8" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-8-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-8-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-8-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_a82a1da52a4bf23e1e7fef4d7228603b1_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
<div id="dynsection-9" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-9-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-9-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-9-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_a82a1da52a4bf23e1e7fef4d7228603b1_icgraph.svg" width="100%" height="539"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="ad25ddcbdf75436b9a0f76720d34257d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad25ddcbdf75436b9a0f76720d34257d4">&#9670;&nbsp;</a></span>name()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string&amp; chi::GraphStruct::name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the name of the type. </p>
<dl class="section return"><dt>Returns</dt><dd>the name </dd></dl>

<p class="definition">Definition at line <a class="el" href="GraphStruct_8hpp_source.html#l00043">43</a> of file <a class="el" href="GraphStruct_8hpp_source.html">GraphStruct.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="GraphStruct_8cpp_source.html#l00111">dataType()</a>, <a class="el" href="GraphStruct_8cpp_source.html#l00021">GraphStruct()</a>, <a class="el" href="GraphModule_8cpp_source.html#l00855">chi::GraphModule::removeStruct()</a>, and <a class="el" href="GraphStruct_8cpp_source.html#l00024">setName()</a>.</p>
<div id="dynsection-10" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-10-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-10-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-10-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_ad25ddcbdf75436b9a0f76720d34257d4_icgraph.svg" width="100%" height="492"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="a759b0b44c984d7aaa6c2fb32e035264b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a759b0b44c984d7aaa6c2fb32e035264b">&#9670;&nbsp;</a></span>removeType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void chi::GraphStruct::removeType </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>updateReferences</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove a type from a struct. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>The ID to remove </td></tr>
    <tr><td class="paramname">updateReferences</td><td>Should the references to make and break nodes be updated? </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="GraphStruct_8cpp_source.html#l00097">97</a> of file <a class="el" href="GraphStruct_8cpp_source.html">GraphStruct.cpp</a>.</p>

<p class="reference">References <a class="el" href="GraphStruct_8hpp_source.html#l00030">module()</a>, <a class="el" href="GraphStruct_8hpp_source.html#l00047">types()</a>, and <a class="el" href="ChiModule_8hpp_source.html#l00105">chi::ChiModule::updateLastEditTime()</a>.</p>

<p class="reference">Referenced by <a class="el" href="GraphStruct_8hpp_source.html#l00047">types()</a>.</p>
<div id="dynsection-11" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-11-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-11-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-11-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_a759b0b44c984d7aaa6c2fb32e035264b_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
<div id="dynsection-12" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-12-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-12-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-12-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_a759b0b44c984d7aaa6c2fb32e035264b_icgraph.svg" width="100%" height="442"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="a464c5edd4ebcb07161c3d05312f1fc33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a464c5edd4ebcb07161c3d05312f1fc33">&#9670;&nbsp;</a></span>setName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; <a class="el" href="structchi_1_1NodeInstance.html">NodeInstance</a> * &gt; chi::GraphStruct::setName </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>newName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>updateReferences</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the name of the struct, and optionally update all references in the context. </p>
<dl class="section warning"><dt>Warning</dt><dd>If updateReferences is false or not all the modules that use this struct are loaded, then there WILL be broken references. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">newName</td><td>The new name </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd><code>!newName.empty()</code> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">updateReferences</td><td>Should all the references in the module be updated? </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The nodes that were updated, garunteed to be empty of <code>updateReferences</code> is false </dd></dl>

<p class="definition">Definition at line <a class="el" href="GraphStruct_8cpp_source.html#l00024">24</a> of file <a class="el" href="GraphStruct_8cpp_source.html">GraphStruct.cpp</a>.</p>

<p class="reference">References <a class="el" href="GraphStruct_8hpp_source.html#l00026">context()</a>, <a class="el" href="Context_8cpp_source.html#l00444">chi::Context::findInstancesOfType()</a>, <a class="el" href="GraphStruct_8hpp_source.html#l00030">module()</a>, <a class="el" href="GraphStruct_8hpp_source.html#l00043">name()</a>, <a class="el" href="GraphModule_8cpp_source.html#l00606">chi::GraphModule::nodeTypeFromName()</a>, and <a class="el" href="ChiModule_8hpp_source.html#l00105">chi::ChiModule::updateLastEditTime()</a>.</p>

<p class="reference">Referenced by <a class="el" href="GraphStruct_8hpp_source.html#l00030">module()</a>.</p>
<div id="dynsection-13" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-13-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-13-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-13-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_a464c5edd4ebcb07161c3d05312f1fc33_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
<div id="dynsection-14" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-14-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-14-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-14-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_a464c5edd4ebcb07161c3d05312f1fc33_icgraph.svg" width="100%" height="492"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="ae1895cfaebac03e21d35ec2a155b3c10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1895cfaebac03e21d35ec2a155b3c10">&#9670;&nbsp;</a></span>types()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;<a class="el" href="structchi_1_1NamedDataType.html">NamedDataType</a>&gt;&amp; chi::GraphStruct::types </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the types the struct contains. </p>
<dl class="section return"><dt>Returns</dt><dd>The types </dd></dl>

<p class="definition">Definition at line <a class="el" href="GraphStruct_8hpp_source.html#l00047">47</a> of file <a class="el" href="GraphStruct_8hpp_source.html">GraphStruct.hpp</a>.</p>

<p class="reference">References <a class="el" href="GraphStruct_8cpp_source.html#l00068">addType()</a>, <a class="el" href="GraphStruct_8cpp_source.html#l00111">dataType()</a>, <a class="el" href="GraphStruct_8cpp_source.html#l00082">modifyType()</a>, and <a class="el" href="GraphStruct_8cpp_source.html#l00097">removeType()</a>.</p>

<p class="reference">Referenced by <a class="el" href="GraphStruct_8cpp_source.html#l00068">addType()</a>, <a class="el" href="GraphStruct_8cpp_source.html#l00111">dataType()</a>, <a class="el" href="JsonSerializer_8cpp_source.html#l00117">chi::graphStructToJson()</a>, <a class="el" href="GraphStruct_8cpp_source.html#l00082">modifyType()</a>, and <a class="el" href="GraphStruct_8cpp_source.html#l00097">removeType()</a>.</p>
<div id="dynsection-15" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-15-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-15-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-15-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_ae1895cfaebac03e21d35ec2a155b3c10_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
<div id="dynsection-16" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-16-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-16-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-16-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1GraphStruct_ae1895cfaebac03e21d35ec2a155b3c10_icgraph.svg" width="100%" height="480"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>lib/core/include/chi/<a class="el" href="GraphStruct_8hpp_source.html">GraphStruct.hpp</a></li>
<li>lib/core/src/<a class="el" href="GraphStruct_8cpp_source.html">GraphStruct.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacechi.html">chi</a></li><li class="navelem"><a class="el" href="structchi_1_1GraphStruct.html">GraphStruct</a></li>
    <li class="footer">Generated on Sat Sep 16 2017 17:41:35 for chigraph by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
